home *** CD-ROM | disk | FTP | other *** search
/ Clickx 63 / Clickx 63.iso / software / multimedia / mirov204 / Miro_Installer.exe / xulrunner / chrome / toolkit.jar / content / global / commonDialog.xul < prev    next >
Encoding:
Extensible Markup Language  |  2008-01-29  |  3.2 KB  |  85 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://global/content/commonDialog.css" type="text/css"?>
  5.  
  6. <!DOCTYPE dialog SYSTEM "chrome://global/locale/commonDialog.dtd">
  7.  
  8. <dialog id="commonDialog"
  9.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
  10.         role="alert"
  11.         onload="commonDialogOnLoad();"
  12.         ondialogaccept="return commonDialogOnAccept();"
  13.         ondialogextra1="return commonDialogOnExtra1();"
  14.         ondialogextra2="return commonDialogOnExtra2();"
  15.         buttonpack="center"
  16.         style="min-width: 29em; min-height: 8.5em; -moz-user-focus: ignore;"> 
  17.     
  18.   <script type="application/javascript" src="chrome://global/content/commonDialog.js"/>
  19.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  20.  
  21.   <commandset id="selectEditMenuItems">
  22.     <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/>
  23.     <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
  24.   </commandset>
  25.  
  26.   <popupset id="contentAreaContextSet">
  27.     <popup id="contentAreaContextMenu"
  28.            onpopupshowing="goUpdateCommand('cmd_copy')">
  29.       <menuitem id="context-copy"
  30.                 label="©Cmd.label;"
  31.                 accesskey="©Cmd.accesskey;"
  32.                 command="cmd_copy"
  33.                 disabled="true"/>
  34.       <menuitem id="context-selectall"
  35.                 label="&selectAllCmd.label;"
  36.                 accesskey="&selectAllCmd.accesskey;"
  37.                 command="cmd_selectAll"/>
  38.     </popup>
  39.   </popupset>
  40.  
  41.  
  42.   <grid>
  43.     <columns>
  44.       <column/>
  45.       <column flex="1"/>
  46.     </columns>
  47.  
  48.     <rows>
  49.       <row>
  50.         <hbox align="start">
  51.           <image id="info.icon" class="spaced"/>
  52.         </hbox>
  53.         <vbox id="infoContainer">
  54.           <description id="info.header" class="header"/>
  55.           <description id="info.body" context="contentAreaContextMenu" tabindex="-1"/>
  56.         </vbox>
  57.       </row>
  58.       <row id="loginContainer" hidden="true" align="center">
  59.         <label id="loginLabel" value="&editfield0.label;" control="loginTextbox"/>
  60.         <textbox id="loginTextbox"/>
  61.       </row>
  62.       <row id ="password1Container" hidden="true" align="center">
  63.         <label id="password1Label" value="&editfield1.label;" control="password1Textbox"/>
  64.         <textbox type="password" id="password1Textbox"/>
  65.       </row>
  66.       <row id="password2Container" hidden="true" align="center">
  67.         <label id="password2Label" value="&editfield2.label;" control="password2Textbox"/>
  68.         <textbox type="password" id="password2Textbox"/>
  69.       </row>
  70.       <row id="checkboxContainer" hidden="true">
  71.         <spacer/>
  72.         <checkbox id="checkbox" oncommand="onCheckboxClick(this);"/>
  73.       </row>
  74.     </rows>
  75.   </grid>
  76.  
  77.  
  78.   <!-- This method is called inline because it may unset hidden="true" on the
  79.        above boxes, causing their frames to be build and bindings to load.  
  80.        So, by calling this inline, we guarantee the textboxes and checkboxes 
  81.        above will have their bindings before initButtons is called, and the
  82.        dialog will be intrinsically sized correctly. -->
  83.   <script type="application/javascript">showControls();</script>
  84. </dialog>
  85.